#include "coolwidget.h"
#include <QVBoxLayout>
#include <QLineEdit>
#include "mywidget.h"

CoolWidget::CoolWidget(QWidget *parent) :
    QWidget(parent)
{
    setLayout(new QVBoxLayout);
    MyWidget *mw = new MyWidget(this);
    QLineEdit *le = new QLineEdit("type here",this);
    layout()->addWidget(mw);
    layout()->addWidget(le);

    connect(le,SIGNAL(textChanged(QString)),mw, SLOT(updateShape(QString)));
}
